package builder.director;

import builder.itf.IMobileBuilder;
import builder.model.MobilePackage;

/**
 * 手机套餐指导者
 *
 * @author laigl 2017年7月11日
 *
 */
public class MobileDirector {

	public MobilePackage createMobilePackage(IMobileBuilder mobileBuilder) {
		if (mobileBuilder != null) {
			mobileBuilder.buildMoney();
			mobileBuilder.buildShortInfo();
			mobileBuilder.buildMusic();
			return mobileBuilder.getMobilePackage();
		}
		return null;
	}

}
